import java.util.Scanner;

public class 计算整数的位数 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();
        if(num<=0)
            System.out.println(num);
        else
            System.out.print((num+"").length());
        //write code here......


    }
}